// components/co-header/CoHeader.js
Component({
  options: {
    addGlobalClass: true,
    multipleSlots: true,
  },

  externalClasses: [
    'custom-class'
  ],
  /**
   * 组件的属性列表
   */
  properties: {
    communityObj: {
      type: Object,
      value: ''
    },
    showApp: {
      type: Boolean,
      value: ''
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
  },

  /**
   * 组件的方法列表
   */
  methods: {
    handleClickLocation() {
      this.triggerEvent('location')
    },
    handleGoFruitCategory() {
      this.triggerEvent('goFruitCategory')
    },
    handleClick() {
      this.triggerEvent('click')
    },
  }
})
